package com.zyl.longpicturebackend.service.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyl.longpicturebackend.model.entity.User;
import com.zyl.longpicturebackend.service.UserService;
import com.zyl.longpicturebackend.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
 * @author admin
 * @description 针对表【user(用户)】的数据库操作Service实现
 * @createDate 2025-03-24 17:20:54
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
        implements UserService {

    @Override
    public long userRegister(String userAccount, String userPassword, String checkPassword) {
        //1.检验数据
        if (StrUtil.hasBlank(userAccount, userPassword, checkPassword)) {

        }

        //2.用户是否存在
        //3.密码加密
        //4.保存用户


        return 0;
    }
}




